package com.example.archermind.myapplication;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


public class MainActivity extends BaseActivity implements View.OnClickListener {


    @BindView(R.id.btn_notification)
    Button btnNotification;
    @BindView(R.id.btn_androidcontrol)
    Button btnAndroidcontrol;
    @BindView(R.id.btn_gatewaysystem)
    Button btnGatewaysystem;
    @BindView(R.id.btn_network)
    Button btnNetwork;
    @BindView(R.id.btn_extapi)
    Button btnExtapi;
    @BindView(R.id.btn_online)
    Button btnOnline;
    @BindView(R.id.btn_androidtolinux)
    Button btnAndroidtolinux;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        unbinder = ButterKnife.bind(this);

    }


    @Override
    @OnClick({R.id.btn_notification, R.id.btn_androidcontrol, R.id.btn_gatewaysystem,
            R.id.btn_network, R.id.btn_extapi, R.id.btn_online,R.id.btn_androidtolinux
    })
    public void onClick(View v) {

        switch (v.getId()) {
            case R.id.btn_notification:
                startIntent(this, NotificationActivity.class);
                break;
            case R.id.btn_androidcontrol:
                startIntent(this, AndroidControlActivity.class);
                break;
            case R.id.btn_gatewaysystem:
                startIntent(this, GatewaySystemActivity.class);
                break;
            case R.id.btn_network:
                startIntent(this, NetWorkActivity.class);
                break;
            case R.id.btn_extapi:
                startIntent(this, ExtApiActivity.class);
                break;
            case R.id.btn_online:
                startIntent(this, OnlineActivity.class);
                break;
            case R.id.btn_androidtolinux:
                startIntent(this,AndroidToLinuxActivity.class);
                break;

        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }


}
